package com.yanqu.road.entity.union.huaben.rank;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.ArrayList;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_c_hua_ben_week_server_group")
public class HuaBenWeekServerGroup extends DataObject {

    @FieldTypeAnnotation(desc = "周id", update = true, select = true)
    private int weekId;

    @FieldTypeAnnotation(desc = "区服")
    private List<Long> serverList = new ArrayList<>();

    @FieldTypeAnnotation(desc = "分组", update = true)
    private int groupId;

    public int getWeekId() {
        return weekId;
    }

    public void setWeekId(int weekId) {
        if(this.weekId != weekId) {
            this.weekId = weekId;
            setUpdateOption();
        }
    }

    public List<Long> getServerList() {
        return serverList;
    }

    public void setServerList(List<Long> serverList) {
        this.serverList = serverList;
        setUpdateOption();
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        if(this.groupId != groupId) {
            this.groupId = groupId;
            setUpdateOption();
        }
    }
}
